﻿using System;
using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace WMSSystem.Migrations
{
    /// <inheritdoc />
    public partial class DYB1 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<Guid>(
                name: "Quantitylistid",
                table: "AppInventoryDetails",
                type: "char(100)",
                maxLength: 100,
                nullable: false,
                comment: "数量变化表(外键)",
                collation: "ascii_general_ci",
                oldClrType: typeof(string),
                oldType: "char(100)",
                oldMaxLength: 100,
                oldComment: "数量变化表(外键)")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<Guid>(
                name: "Positionid",
                table: "AppInventoryDetails",
                type: "char(100)",
                maxLength: 100,
                nullable: false,
                comment: "库位Id(外键)",
                collation: "ascii_general_ci",
                oldClrType: typeof(string),
                oldType: "char(100)",
                oldMaxLength: 100,
                oldComment: "库位Id(外键)")
                .OldAnnotation("MySql:CharSet", "utf8mb4");

            migrationBuilder.AlterColumn<Guid>(
                name: "Manager",
                table: "AppInboundmanagement",
                type: "char(50)",
                maxLength: 50,
                nullable: false,
                comment: "经办人(外键)",
                collation: "ascii_general_ci",
                oldClrType: typeof(string),
                oldType: "char(50)",
                oldMaxLength: 50,
                oldComment: "经办人(外键)")
                .OldAnnotation("MySql:CharSet", "utf8mb4");
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AlterColumn<string>(
                name: "Quantitylistid",
                table: "AppInventoryDetails",
                type: "char(100)",
                maxLength: 100,
                nullable: false,
                comment: "数量变化表(外键)",
                oldClrType: typeof(Guid),
                oldType: "char(100)",
                oldMaxLength: 100,
                oldComment: "数量变化表(外键)")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("Relational:Collation", "ascii_general_ci");

            migrationBuilder.AlterColumn<string>(
                name: "Positionid",
                table: "AppInventoryDetails",
                type: "char(100)",
                maxLength: 100,
                nullable: false,
                comment: "库位Id(外键)",
                oldClrType: typeof(Guid),
                oldType: "char(100)",
                oldMaxLength: 100,
                oldComment: "库位Id(外键)")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("Relational:Collation", "ascii_general_ci");

            migrationBuilder.AlterColumn<string>(
                name: "Manager",
                table: "AppInboundmanagement",
                type: "char(50)",
                maxLength: 50,
                nullable: false,
                comment: "经办人(外键)",
                oldClrType: typeof(Guid),
                oldType: "char(50)",
                oldMaxLength: 50,
                oldComment: "经办人(外键)")
                .Annotation("MySql:CharSet", "utf8mb4")
                .OldAnnotation("Relational:Collation", "ascii_general_ci");
        }
    }
}
